#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <assert.h>
using namespace std;

char *my_strcpy(char *str,const char *arr);
int main()
{
	char arr[] = "abc";
	char str[20];
	my_strcpy(str, arr);
	printf("%s", str);
	return 0;
}

char* my_strcpy(char* str, const char* arr)
{
	char* p = str;
	assert(arr);
	assert(str);

	while (*str++ = *arr++);
	return p;
}
